package com.example.designPattern.adapter.classAdapter;

/**
 * 类适配器   相当于手机充电器转接头
 *
 * 它将220v的电压转成5v后使用
 */
public class VoltageAdapter extends Voltage220V implements IVoltage5V {
    @Override
    public int output5V() {
        int voltage = this.output220V() / 44;
        return voltage;
    }
}
